import 'package:flutter/material.dart';
import 'package:banyingli_flutter/utils/DateUtil.dart';

class DateTimePage extends StatefulWidget {
  @override
  _DateTimePageState createState() => _DateTimePageState();
}

String buttonText = "";
double _volume = 0;

class _DateTimePageState extends State<DateTimePage> {

  void navigateNamed(String routeName){
    Navigator.pushNamed(context, routeName);
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('日期时间'),
        elevation: 0.0,
      ),
      body: Column(
        children: <Widget>[
          Text("" + formatDateSimple(DateTime(1989, 02, 21))),
          Text("" + formatDateZh(DateTime(1989, 2, 21))),
          
        ],
      ),  
    );
  }
}